import { defineStore } from "pinia";

export interface SettingState {
    menuFold: boolean,
    reflesh: boolean,
}

export const useSettingStore = defineStore('setting', {
    state: (): SettingState => {
        return {
            menuFold: false,//控制菜单折叠
            reflesh: false,//刷新按钮
        }
    },
    actions: {
        // 折叠展开菜单
        taggerMenuFold() {
            this.menuFold = !this.menuFold;
        }


    },
    getters: {

    }
})